import ats.re.relib 

# -----------------------------------------------------------------------------
# String funcs
# -----------------------------------------------------------------------------
def isempty(s): return s is None or len(s.strip()) == 0

# -----------------------------------------------------------------------------
def reduce2digits(s):
	""" Strip out all characters that are not digits
	"""
	if not s: return "" 
	return "".join([x for x in s if x in '0123456789'])

# -----------------------------------------------------------------------------
def strip_ml_tags(s):
	""" remove all html tags
	"""
	return "".join(relib.HTML_TAG.split(s))
